from api.login_api import LoginApi

def get_headers(mobile="13800000002",password="123456"):
    """登录，返回包含令牌的请求头"""
    body = {"mobile":mobile,"password":password}
    resp = LoginApi.login(body)
    token ="Bearer "+resp.json()['data']

    headers = {
        # "Content-Type": "application/json",
        "Authorization": token
    }
    return headers


if __name__ == '__main__':
    print(get_headers())